package com.howells.time.module.message.view;

import android.content.Context;

import com.howells.time.R;
import com.howells.time.module.message.model.MessageMode;
import com.zhy.base.adapter.ViewHolder;
import com.zhy.base.adapter.recyclerview.CommonAdapter;

import java.util.List;

/**
 * Created by Administrator on 2016.5.11.
 */
public class MessageAdapter extends CommonAdapter {


    public MessageAdapter(Context context, int layoutId, List datas) {
        super(context, layoutId, datas);
    }

    @Override
    public void convert(ViewHolder holder, Object o) {
        MessageMode m=(MessageMode)o;
        holder.setText(R.id.text_name,m.getTitle());
        holder.setText(R.id.text_context,m.getContext());
        holder.setText(R.id.text_time,m.getTime());
    }
}
